/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __ADC_H
#define __ADC_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f0xx.h"
#include "stm32f0xx_rcc.h"
#include "stm32f0xx_gpio.h"	 
#include "stm32f0xx_adc.h"
#include "stm32f0_discovery.h"
	 

/* Exported constants --------------------------------------------------------*/
#define ADC_BUF_SIZE		10

	 /* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void ADC_Config(uint32_t channel);
void ADC_EnableIRQ(void);
void ADC_EnableDMA(uint32_t count);	 
	 
extern uint16_t ADC_Value;
extern uint16_t ADC_Buffer[];

/* External hook functions */
void ADC_HookFunc_ADC_IT_EOC(void);
void ADC_HookFunc_DMA_IT_HT(void);
void ADC_HookFunc_DMA_IT_TC(void);

#endif
